<%@ page  import="java.sql.*" contentType="text/html;charset=windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0033)http://www.phrack.org/comment.php -->
<HTML><HEAD><TITLE>www.phrack.org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<%
   String webRoot="iran_hacker2";
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
   String url = "jdbc:odbc:iranhk";
   Connection con = DriverManager.getConnection(url, "iranhk", "iranhk");
%> 
<BODY text=#cfcfcf vLink=lightblue aLink=white link=skyblue bgColor=#000000 
leftMargin=0 topMargin=0 border="0" marginright="0" marginheight="0" 
marginwith="0">
<CENTER>
<CENTER>
<%
  
   ResultSet rst=(ResultSet)session.getAttribute("resultSet");
   int rowCount=((Integer)session.getAttribute("resultSetRowsCount")).intValue();
   //int count=rst.
   //out.print(rowCount);
%>    
    <% 
      int perPage=25;
      int pageNum;
      /*Object obj=request.getParameter("PAGENUM");
      if (obj!=null){        
        pageNum=Integer.parseInt(obj.toString());
      } else {pageNum=1;}*/
      pageNum=Integer.parseInt(request.getParameter("PAGENUM").toString());
    %> 
     <%for (int b=1;b<=rowCount/perPage+1;b++){       
       if (b!=pageNum){          
     %>
       <A href="../displayer/messages.jsp?PAGENUM=<%=b%>">
         [<%=b%>]         
       </A> 
     <%} else {
        out.print("["+b+"]");
       }
     }
     %> 
<%
 if (pageNum==1) {rst.beforeFirst();}  //setting rp row number related to page
   else 
  {rst.absolute((pageNum-1)*perPage+1);}
  
 int row=0;
 while ((rst.next()) && (row<=perPage)){   
  row++;
  int msgid=rst.getInt("ID");
  String name=rst.getString("NAME");  
  String author=rst.getString("AUTHOR");
  String date=rst.getDate("DAT").toString();
  String text=rst.getString("TEXT");
  String subject="",about="",link="";
  int r=0;
  
  r=rst.getInt("REL_ART_ID");
  if (rst.wasNull()==false){
   about="article";
   subject=rst.getString("REL_ART");
   link="/"+webRoot+"/download/downArticle.jsp?ID="+r;
  }
  r=rst.getInt("REL_TOOL_ID");
  if (rst.wasNull()==false){
   about="tool";
   subject=rst.getString("REL_TOOL");
   link="/"+webRoot+"/download/downTool.jsp?ID="+r;
  }
  r=rst.getInt("REL_MESS_ID");
  if (rst.wasNull()==false){
   about="message";
   subject=rst.getString("REL_MESS");
   link="/"+webRoot+"/displayer/findMessage.jsp?ID="+r;  
  }
%> 
<TABLE cellSpacing=0 cellPadding=1 width="70%" align=center bgColor=#0000a8 
border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=1 cellPadding=0 width="100%" bgColor=#000044 
        border=0><TBODY>
        <TR>
          <TD bgColor=#000066>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#000066 
            border=0>
              <TBODY>             
               <TR>
                <TD><FONT face=Lucida,Verdana,Helvetica,Arial><B>
                       <%=author%>
                  </B></FONT></TD>
                <TD align=right><FONT face=Lucida,Verdana,Helvetica,Arial><B>
                   <%=date%>
                 </B></FONT></TD></TR>
              <TR>
                <TD><FONT face=Lucida,Verdana,Helvetica,Arial>
                   <B>
                       <%=name%>
                   </B></FONT></TD>
                <TD align=right><FONT 
                  face=Lucida,Verdana,Helvetica,Arial><B><A 
                  href="http://www.phrack.org/show.php?p=61&amp;a=8">
                     <%%>
                  </A></B></FONT></TD></TR>                  
           </TBODY></TABLE>
          </TD>
      </TR>
      <TR><TD>
             <FONT face=Lucida,Verdana,Helvetica,Arial style="font-size: 8pt">                 
                  this message is related to <%=about%>:
                    <A href=<%=link%>>
                       <%=subject%>
                    </A>
            </FONT>
      </TD></TR>              
       <TR>
          <TD bgColor=#000044>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              <TBODY>
              <TR>
                <TD align=left><FONT 
                  face=Lucida,Verdana,Helvetica,Arial><SMALL><BR>
                   <%=text%>
                  </SMALL>
                </FONT><BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
                <p></p>
                <%}%>
          
          
</CENTER><BR><BR></CENTER></BODY></HTML>
<%
  int k=0;
  /*rst.close();  //we dont shut it down cause of other page use that
  con.close();*/ 
  //session.getAttribute("resultSet");
  //session.removeAttribute("resultSet");
%>